package com.example.eurekaserverclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OneController {
    @Value("${server.port:8080}")
    private int port;

    @RequestMapping("/test_port")
    public String testPort(){
        return "eureka-server-client service port="+port;
    }
}
